package com.lsl.bridge.shape;

import com.lsl.bridge.color.ColorAPI;

/**
 * @author Zed
 * @description
 * @date 2022/11/28 21:22
 */
public abstract class Shape {
    //添加一个颜色的成员变量以调用ColorAPI 的方法来实现给不同的形状上色
    protected ColorAPI colorAPI;

    //注入颜色成员变量
    public Shape(ColorAPI colorAPI) {
        this.colorAPI = colorAPI;
    }

    public abstract void draw();
}
